#!/usr/bin/python3
import queue
import threading
import time,requests,cchardet,random
start_time = time.time()
threadID = 1
threadList = ["Thread-1", "Thread-2", "Thread-3"]
for td in threadList:
    threadID += 1
    if len(threadList)<1000:
        threadList.append('Thread-'+str(threadID+3))
    random_time = random.randint(1,3)
    time.sleep(random_time)
    print(td+' random_time: '+str(random_time))

end_time = time.time()
print('花费时间: '+str(end_time-start_time))